from django.urls import path, re_path
from IM.views import auth_user_pass, upload_file, auth_user_token, register, get_user, get_users, show_user, ImageView

urlpatterns = [
    path("auth_user_pass/", auth_user_pass),
    path("auth_user_token/", auth_user_token),
    path("upload/", ImageView.as_view()),
    re_path("user/(?P<username>\\w+)$", show_user),
    path("users/", get_users),
    path("register/", register),
]